﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Microsoft.SqlServer.Management.Smo;

namespace Orange.Logistics.Models {
    [Table("Groups")]
    public class Group {
        [Key, Column("Groupid"), Required, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Groupid { get; set; }

        [Column("Groupname"), MaxLength(20), Required]
        public string Groupname { get; set; }

        [Column("Status"), MaxLength(20)]
        public string Status { get; set; }

        [Column("Modifyuser"), MaxLength(12)]
        public string Modifyuser { get; set; }

        [Column("Modifytime")]
        public DateTime? Modifytime { get; set; }
    }
}